<?php
namespace api\wxapp\model;
use api\common\model\CommonModel;
use think\Model;

class OrderModel extends CommonModel
{     
    public function user(){
        return $this->belongsTo('UserModel','user_id');
    }    
    public function course(){
        return $this->belongsTo('SchoolCourseModel','course_id')->where('delete_time',0);
    }
    public function student(){
        return $this->belongsTo('UserStudentModel','student_id')->where('delete_time',0);
    }
    
}